<!--#include file="admin/Includes/constants.asp"-->
<!--#include file="admin/Includes/validate.asp"-->
<%
Dim Rating, ImageName, ImageID, strMessage

ImageName = Request.QueryString("in")
ImageID = Request.QueryString("iid")

Rating = Request.Form("rating")
If Rating <> "" Then
	ImageID = Request.Form("ImageID")
	strSQL = "{CALL a_Rating_Add ("&ImageID&",'"&CookieID&"',"&Rating&")}"	
	'response.Write(strSQL)
	'response.End()	
	exec(strsql)
	strMessage="Cảm ơn bạn đã tham gia chấm điểm."
Set RS = Nothing
	Set cmd = Nothing
	objConn.Close
	Set objConn = Nothing	
End If	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Danh gia</title>
	<Meta name="Robots" content="noindex,nofollow">
	<link rel="STYLESHEET" type="text/css" href="system/styles.css">
</head>
<body style="background-color:#FFFFCC">
<table width="100%" height="100%" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFCC">
<form action="review.asp" method="post">
<input type="hidden"  name="ImageID" class="" value ="<%=ImageID%>"/>
<tr bgcolor="#B6A8AD"><td><img src="../../hinh-thoi-trang/cham-diem-hp.gif"></td></tr>
<% If strMessage = "" Then %>
	<tr>
	   <td style="padding:1px 1px 1px 12px;"><h5>Đánh giá:&nbsp;&nbsp; <select name="rating">
			<option value="1">1 điểm</option>
			<option value="2">2 điểm</option>
			<option value="3">3 điểm</option>
			<option value="4">4 điểm</option>
			<option value="5" selected="selected">5 điểm</option>
			<option value="6">6 điểm</option>
			<option value="7">7 điểm</option>
			<option value="8">8 điểm</option>
			<option value="9">9 điểm</option>
			<option value="10">10 điểm</option>
		  </select>
		  <input type="submit" name="Submit" value="Chấm điểm" class="btnGo">
			</h5>
	  </td>
  </tr>
  	<tr><td bgcolor="#B6A8AD"><img src="<%=seo_mode_img%>/de_clear.gif"  width="1" height="1" border="0"></td></tr>
	<tr bgcolor="#B6A8AD"><td align="center"><img src="<%=ImageName%>" vspace="10"/></td></tr>
	  <% Else %>	
	  <tr><td style="padding:20px 0px 20px 12px;"><h5><%= strMessage %></h5><br /><br />
	   <a href="javascript:window.close()"><input type="button" value="Đóng" class="btnGo"></a>
	   </td></tr>
	  <% End If %>	 
 </form>
</table>

</body>
</html>

